package Levels;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: Igor
 * Date: 05.12.13
 * Time: 13:27
 * To change this template use File | Settings | File Templates.
 */
public class LevelWrapper {
    private ArrayList<Integer> questionsList;
    private int levelSize;

    public LevelWrapper(ArrayList<Integer> generatedList){
         this.questionsList=generatedList;
         this.levelSize = questionsList.size();
    }

    public LevelWrapper(int[] levelArray) {
        questionsList = new ArrayList<Integer>(levelArray.length);
        for(int i =0;i<levelArray.length;i++){
            questionsList.set(i,Integer.valueOf(levelArray[i]));
        }
    }

    public int getQuestionIndex(int position){
          return questionsList.get(position).intValue();
    }

    public int getLevelSize(){
       return levelSize;
    }

}
